package com.geeksaga.dao;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.geeksaga.domain.Notification;

/**
 * @author newbie
 * @since 0.1
 */
public interface NotificationDao {

    /**
     * @param notification
     * @return
     * @throws DataAccessException
     */
    public Notification add(Notification notification) throws DataAccessException;
    
    /**
     * @param notification
     * @return
     * @throws DataAccessException
     */
    public int remove(Notification notification) throws DataAccessException;
    
    /**
     * @param notification
     * @return
     * @throws DataAccessException
     */
    public int modify(Notification notification) throws DataAccessException;
    
    /**
     * @param notification
     * @return
     * @throws DataAccessException
     */
    public Notification find(Notification notification) throws DataAccessException;
    
    /**
     * @param notification
     * @return
     * @throws DataAccessException
     */
    public List<Notification> findListByUser(Notification notification) throws DataAccessException;
}